<?php
    /**
     * Created by $Mitonios Editor.
     * User: $Mitonios
     * Date: 1/03/13
     * Time: 3:24 PM
     */
    /* @var $item Product */
?>
<div id="detail" style="font-size: 12px;">
    <h3><?php echo $model->name?></h3>
    <img src="<?php echo Yii::app()->request->baseUrl . $model->avatar?>" class="img" style="max-width: 415px"/>

    <div id="product-detail">
        <h4 class="name"><?php echo $model->name?></h4>
        Mã sản phẩm : <b><?php echo $model->id?></b><br>
        Giá: <b> <span class="price"><?php echo number_format($model->price, 0, "", ".") ?></span></b> VNĐ<br/>
        <b>Thông tin mua hàng</b>
        <hr/>
        <?php echo $info;?>
    </div>
    <div class="clr">
    </div>
</div>
<div id="new-product" class="list-product">
    <h3>Sản phẩm cùng loại</h3>
    <?php $this->renderPartial('/site/products', array('items' => $items))?>
</div>